package com.starlink.model.dtomapper;

import com.starlink.model.domain.SchoolbagBooksStorageDO;
import com.starlink.model.request.SchoolbagBooksStorageRequest;
import com.starlink.model.vo.SchoolbagBooksStorageVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface SchoolbagBooksStorageDtoMapper {

    SchoolbagBooksStorageDtoMapper INSTANCE = Mappers.getMapper(SchoolbagBooksStorageDtoMapper.class);

    /**
    * DO to VO
    * @param schoolbagBooksStorageDO
    * @return
    */
    SchoolbagBooksStorageVO do2VO(SchoolbagBooksStorageDO schoolbagBooksStorageDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    SchoolbagBooksStorageDO request2DO(SchoolbagBooksStorageRequest request);
}
